function [ validImages ] = getValidImages( folder_path )
    %Returns the valid images in folder containing images
    
    %Get the source code folder
    sourceCodeDirectory = pwd;
    %Go to training data's folder
    cd(folder_path);
    %Get the image names and shrink the list so it does not include . and ..
    lsm = ls;
    trainingImages = lsm(3:size(lsm), :);
    validImages = [];
    index = 1;
    %Get the valid images among all files in the folder (ie exclude .svn
    %file etc)
    for i = 1 : size(trainingImages)
        lf = trainingImages(i,:);
        if  lf(1) == '.'
            continue;
        else
            validImages(index,:) = lf;
            index = index + 1;
        end
    end
    
    %Go back to source code directory
    cd(sourceCodeDirectory);
    
end

